/*
HLA EPITOPES FREQUENCY DATABASE
Function: Create Table [epit_loci]
Created in: 29.01.2014
Author: Louise Takeshita
*/

USE [allel001]
GO
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [EpitHLA].[epit_loci](
	[epit_id] [int] NOT NULL,
	[epit_locus] [varchar](10) NOT NULL
) ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO

ALTER TABLE [EpitHLA].[epit_loci]  WITH CHECK ADD  CONSTRAINT [FK_loci_epit_id] FOREIGN KEY([epit_id])
REFERENCES [EpitHLA].[epitopes] ([epit_id])
ON UPDATE CASCADE
ON DELETE CASCADE
GO

ALTER TABLE [EpitHLA].[epit_loci] CHECK CONSTRAINT [FK_loci_epit_id]
GO